﻿/*
* This software is the confidential and proprietary
* information of NetBay
* Such confidential information should not be disclosed
* NetBay copyright(c) 2010
*/

#region Using
using System.Collections.Generic;
using NetBay.Core.BusinessEntities;
using Rio.Doc.Business.Repository.Translator;
using Rio.Doc.DataAccess;
#endregion


namespace Rio.Doc.Business.Repository
{
    /// <summary>
    /// Item Repository
    /// </summary>
    public class ItemRepository : ItemDer
    {

        public static List<Index> GetIndexByFolderType(long p_lUserId, long p_lFolderTypeIdentifier)
        {
            return IndexTranslator.TranslateIndex(DA_Index.GetIndexByFolderType(p_lUserId, p_lFolderTypeIdentifier));
        }

        public static List<Item> GetItemByFolderType(long p_lUserId, long p_lFolderTypeIdentifier)
        {
            return ItemTranslator.TranslateIndex(DA_Item.GetItemByFolderType(p_lUserId, p_lFolderTypeIdentifier));
        }

        public static List<Item> GetItemWithNoConsultationRightsByFolderType(long p_lUserId, long p_lFolderTypeIdentifier)
        {
            return ItemTranslator.TranslateIndex(DA_Item.GetItemWithNoConsultationRightsByFolderType(p_lUserId, p_lFolderTypeIdentifier));
        }
    }
}
